﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FunBox.Controllers
{
    public class PlayerController : Controller
    {
        //
        // GET: /Player/

        public string Index()
        {
            return "Hello from Player.Index()";
        }
        //
        // GET: /Player/Browse
        [AcceptVerbs("POST")]
        public string Browse()
        {
            return "Hello from Player.Browse()";
        }
        //
        // GET: /Player/Details/5
        public string Details(int id)
        {
            return "Player : " + id;
        }
        
        // GET: /Player/Browse?type=something;
        [AcceptVerbs("GET")]
        public string Browse(string genre)
        {
            string message = HttpUtility.HtmlEncode("Player.Browse, Spec = "
        + genre);

            return message;
        }
    }
}
